#ifndef IOT_DM_API_H
#define IOT_DM_API_H

#include "iot_dm_codec.h"
#include "common.h"
#include "iot_external_interface.h"

#define DM_SEND_BUFF    (300)

void initDMApi(DM_CALLBACK_FUNC* func);

void dmApiProcess();

//void propertyPost(uint32_t id, PropertyPayload* payload, int8_t size);
void propertyPost(uint8_t* data, PropertyPayload *payload, int8_t size);
void propertySet(uint32_t id, PropertyPayload* payload, int8_t size);
void propertySer(uint32_t id, PropertyPayload* payload, int8_t size);
void sendSetPropertyRes(uint32_t id,uint32_t code);
void sendCONFIG_UPDATERes(uint32_t id, uint32_t code);
void propertyConfigUpdate(uint32_t id, PropertyPayload *payload, int8_t size);
void testLoppProcess();
//void testPropertyPost();
void testPropertyPost(uint8_t *data);
extern void handleRecvData(unsigned char* buf, int len);

#endif // IOT_DM_API_H
